package com.yantong.service;

import com.yantong.pojo.ChooseProductRes;
import com.yantong.pojo.vo.ChooseProductVo;
import com.yantong.utils.PageUtils;
import com.yantong.pojo.MarketingSeckill;
import com.yantong.pojo.MarketingSeckillSku;
import com.yantong.pojo.vo.MemberCartVo;

import java.util.List;

/**
 * 秒杀服务
 */
public interface MarketingSeckillService {

    int changeStock(Integer total, Long activityId);

    int changeSkuStockAlone(Integer total, Long activityId, Long skuId);

    /**
     * 选择商品
     * @param offset
     * @param limit
     * @param productVo
     * @return
     */
    PageUtils<ChooseProductRes> chooseProductList(int offset, int limit, ChooseProductVo productVo);

    MarketingSeckill getMarketingSeckillByProductId(Long productId);

    int changeSkuStock(Integer total, Long activityId, Long skuId);

    void checkStockAndTime(Long activityId,Integer isSubimtOrgType, MemberCartVo memberCartVo,Long sgorderId);

}

